import requests from '../common/request'

export function getNearbyShopList(data) {
  return requests.post({
    // url: '/memberApp/business/shopList',
    url: '/memberShopApp/business/shopList', //兼容收银台小程序跳转过来开卡（此时未登录），无需token，body要传businessId
    data
  })
}
export function getMallConfig(classifyCode) {
  return requests.get({
    url: '/wx/open/user/config'
  })
}
//根据卡券id获取卡券原型数据
// export function getPrototype(prototypeId) {
//   return requests.get({
//     url: '/couponApp/coupon/prototype?prototypeId=' + prototypeId
//   })
// }

export function getPrototype(prototypeId) {
  return requests.get({
    url: '/couponAppOpen/coupon/prototype?prototypeId=' + prototypeId
  })
}

